//
//  GoodsCell.m
//  Commerce
//
//  Created by gc on 15/3/28.
//  Copyright (c) 2015年 fei. All rights reserved.
//

#import "GoodsCell.h"

@implementation GoodsCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)configUIWithData:(NSDictionary *)dic{
    _startingLabel.text = [NSString stringWithFormat:@"出发地:%@",[dic[@"StartingCityName"] isEqual:[NSNull null]]?@"":dic[@"StartingCityName"]];
    _destinationLabel.text = [NSString stringWithFormat:@"目的地:%@",[dic[@"DestinationCityName"] isEqual:[NSNull null]]?@"":dic[@"DestinationCityName"]];
    _phoneLabel.text = [dic[@"UserName"] isEqual:[NSNull null]]?@"":dic[@"UserName"];
    _dateLabel.text = [dic[@"SysTime"] isEqual:[NSNull null]]?@"":dic[@"SysTime"];
    _typeNameLabel.text = [NSString stringWithFormat:@"已推送：%@条",[dic[@"ScheNum"] isEqual:[NSNull null]]?@"":dic[@"ScheNum"]];
    _specNameLabel.text = [NSString stringWithFormat:@"%@ %@",[dic[@"CarTypeName"] isEqual:[NSNull null]]?@"":dic[@"CarTypeName"],[dic[@"CarSpecName"] isEqual:[NSNull null]]?@"":dic[@"CarSpecName"]];
}

@end
